<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<meta charset="utf-8" />
	<title>定位</title>
	<style>
        .d1{
            width: 100px;
            height: 100px;
            display: inline-block;
            background-color: bisque;
        }

        .d2{
            background-color: brown;
            position: relative;
        }

    </style>
    
    <script>
        var a = {
            test: 'aaa',
            aaa: 'bbb',
        }

        for(x in a){
            console.log(a[x])
        }

    </script>
</head>

<body>

    <div>
        <div class="d1"></div>
        <div class="d1"></div>
    </div>

    <div>
        <div class="d1"></div>
        <div class="d1 d2"></div>
    </div>


    <input></input>
</body>

</html>